package com.ifonly.datatables.model;

/**
 * <p>
 * .
 * </p>
 *
 * @author Jerry Ou
 * @version 1.0 2015-08-31 16:46
 * @since JDK 1.6
 */
public class Filter {
    private String name;
    private String value;
    private String value2;
    private Condition condition;

    public Filter() {
    }

    public Filter(String name, String value, Condition condition) {
        this.name = name;
        this.value = value;
        this.condition = condition;
    }

    public Filter(String name, String value, String value2, Condition condition) {
        this.name = name;
        this.value = value;
        this.value2 = value2;
        this.condition = condition;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public Condition getCondition() {
        return condition;
    }

    public void setCondition(Condition condition) {
        this.condition = condition;
    }

    @Override
    public String toString() {
        return "Filter{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                ", value2='" + value2 + '\'' +
                ", condition=" + condition +
                '}';
    }
}
